package com.tanhua.dubbo.api;

import com.tanhua.model.domain.User;

import java.util.List;

public interface UserApi {

    //根据手机号码查询用户
    User findByMobile(String mobile);

    //保存用户，返回用户id
    Long save(User user);

    User findByUserId(Long userId);

    void updateUserById(User user);

    void update(User user);

    List<User> findAll();

    User findById(Long userId);

    User findByHuanxin(String huanxinId);
}
